package com.srd.phone.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.shengrongdai.srd.R;

/**
 * 消息列表 详情
 * */
public class MesListInfoActivity extends BaseActivity{

    private TextView tv_title_name, tv_date, tv_info;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());

        initView();
        initData();
    }

    @Override
    public void initView(){
        super.initView();

        tv_common_title.setText("系统消息");
        tv_title_name = (TextView)findViewById(R.id.tv_title_name);
        tv_date = (TextView)findViewById(R.id.tv_date);
        tv_info = (TextView)findViewById(R.id.tv_info);
    }

    @Override
    public void initData() {
        super.initData();

        Intent intent = getIntent();
        tv_title_name.setText(intent.getStringExtra("title"));
        tv_date.setText(intent.getStringExtra("date"));
        tv_info.setText(intent.getStringExtra("info"));
    }

    private int getLayoutId(){
        return R.layout.activity_message_list_detail;
    }

}

